import Cookies from 'js-cookie'

// 设置cookie
export const SetCookie = (key, value, days = 30) => {
  Cookies.set(key, value, { expires: days, sameSite: 'Lax' })
}

// 删除cookie
export const RemoveCookies = (key) => {
  Cookies.remove(key, {
    sameSite: 'Lax'
  })
}

// 获取cookie
export const GetCookies = (key) => {
  return Cookies.get(key) || ''
}
